﻿using System;
using UnityEngine;

// Token: 0x020002DE RID: 734
public static class SystemSE
{
	// Token: 0x170001B7 RID: 439
	// (get) Token: 0x060012A6 RID: 4774 RVA: 0x000871E8 File Offset: 0x000853E8
	public static GameControl GameCtrl
	{
		get
		{
			if (SystemSE.gameCtrl == null)
			{
				SystemSE.gameCtrl = UnityEngine.Object.FindObjectOfType<GameControl>();
			}
			return SystemSE.gameCtrl;
		}
	}

	// Token: 0x060012A7 RID: 4775 RVA: 0x0008720C File Offset: 0x0008540C
	private static AudioClip ChoiceClip(SystemSE.SE se)
	{
		if (SystemSE.GameCtrl == null || SystemSE.GameCtrl.audioCtrl == null)
		{
			return null;
		}
		AudioClip result = null;
		switch (se)
		{
		case SystemSE.SE.CHOICE:
			result = SystemSE.GameCtrl.audioCtrl.systemSE_choice;
			break;
		case SystemSE.SE.YES:
			result = SystemSE.GameCtrl.audioCtrl.systemSE_yes;
			break;
		case SystemSE.SE.NO:
			result = SystemSE.GameCtrl.audioCtrl.systemSE_no;
			break;
		case SystemSE.SE.OPEN:
			result = SystemSE.GameCtrl.audioCtrl.systemSE_open;
			break;
		case SystemSE.SE.CLOSE:
			result = SystemSE.GameCtrl.audioCtrl.systemSE_close;
			break;
		}
		return result;
	}

	// Token: 0x060012A8 RID: 4776 RVA: 0x000872CC File Offset: 0x000854CC
	public static void Play(SystemSE.SE se)
	{
		AudioClip clip = SystemSE.ChoiceClip(se);
		if (SystemSE.GameCtrl != null && SystemSE.GameCtrl.audioCtrl != null)
		{
			SystemSE.GameCtrl.audioCtrl.Play2DSE(clip);
		}
	}

	// Token: 0x0400179A RID: 6042
	private static GameControl gameCtrl;

	// Token: 0x020002DF RID: 735
	public enum SE
	{
		// Token: 0x0400179C RID: 6044
		CHOICE,
		// Token: 0x0400179D RID: 6045
		YES,
		// Token: 0x0400179E RID: 6046
		NO,
		// Token: 0x0400179F RID: 6047
		OPEN,
		// Token: 0x040017A0 RID: 6048
		CLOSE,
		// Token: 0x040017A1 RID: 6049
		NUM
	}
}
